<?php
/**
 * Author Yulin
 * Email  dwzhanglong@126.com
 * Date   2017-7-21
 * Func   个人信息
 */
defined('IN_YuLin') || exit('NO PERMIT!');
$seo['title'] = '大众彩票-个人中心';
$pageTitle    = '个人信息';
$navTag       = 'member';
$page         = 'member/info';
switch(NoBadStr($_GET['type'])){
    case 'level':
        // 获取所有的头衔等级信息
        $levelTab     = Table('user_level');
        $levelData    = $db->getall('SELECT id, title, level, group_point, reward, overstep FROM ' . $levelTab . ' WHERE status = 1');
        // 用户的等级头衔信息页面
        $page         = 'member/level';
        break;
    case 'postal':
        $page         = 'member/postal';
        break;
    case 'plstatement':
        $page         = 'member/plstatement';
        break;
}
UserLogin();
$userInfo     = $_user;
$tpl->display($page);